package com.xueyi.aixihu.entity.po;

import com.xueyi.aixihu.entity.vo.FinanceReportBase;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class AxhFinanceReportVillage extends FinanceReportBase {
    private Integer id;

    private Date createTime;

    private Date lastUpdateTime;

    @NotNull(message = "编号不能为空")
    private String financeNumber;

    @NotNull(message = "资产名不能为空")
    private String lineName;

    private String headMoneyType;

    private BigDecimal headMoney;

    private BigDecimal currentBorrow;

    private BigDecimal currentLoan;

    private String endMoneyType;

    private BigDecimal endMoney;

    private Integer financeId;

    private Integer pid;

    private String accessory;

    public AxhFinanceReportVillage(Integer id, Date createTime, Date lastUpdateTime, String financeNumber, String lineName, String headMoneyType, BigDecimal headMoney, BigDecimal currentBorrow, BigDecimal currentLoan, String endMoneyType, BigDecimal endMoney, Integer financeId, Integer pid) {
        this.id = id;
        this.createTime = createTime;
        this.lastUpdateTime = lastUpdateTime;
        this.financeNumber = financeNumber;
        this.lineName = lineName;
        this.headMoneyType = headMoneyType;
        this.headMoney = headMoney;
        this.currentBorrow = currentBorrow;
        this.currentLoan = currentLoan;
        this.endMoneyType = endMoneyType;
        this.endMoney = endMoney;
        this.financeId = financeId;
        this.pid = pid;
    }

    public AxhFinanceReportVillage(Integer id, Date createTime, Date lastUpdateTime, String financeNumber, String lineName, String headMoneyType, BigDecimal headMoney, BigDecimal currentBorrow, BigDecimal currentLoan, String endMoneyType, BigDecimal endMoney, Integer financeId, Integer pid,
                                   String accessory) {
        this.id = id;
        this.createTime = createTime;
        this.lastUpdateTime = lastUpdateTime;
        this.financeNumber = financeNumber;
        this.lineName = lineName;
        this.headMoneyType = headMoneyType;
        this.headMoney = headMoney;
        this.currentBorrow = currentBorrow;
        this.currentLoan = currentLoan;
        this.endMoneyType = endMoneyType;
        this.endMoney = endMoney;
        this.financeId = financeId;
        this.pid = pid;
        this.accessory = accessory;
    }

    public AxhFinanceReportVillage() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getFinanceNumber() {
        return financeNumber;
    }

    public void setFinanceNumber(String financeNumber) {
        this.financeNumber = financeNumber == null ? null : financeNumber.trim();
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName == null ? null : lineName.trim();
    }

    public String getHeadMoneyType() {
        return headMoneyType;
    }

    public void setHeadMoneyType(String headMoneyType) {
        this.headMoneyType = headMoneyType == null ? null : headMoneyType.trim();
    }

    public BigDecimal getHeadMoney() {
        return headMoney;
    }

    public void setHeadMoney(BigDecimal headMoney) {
        this.headMoney = headMoney;
    }

    public BigDecimal getCurrentBorrow() {
        return currentBorrow;
    }

    public void setCurrentBorrow(BigDecimal currentBorrow) {
        this.currentBorrow = currentBorrow;
    }

    public BigDecimal getCurrentLoan() {
        return currentLoan;
    }

    public void setCurrentLoan(BigDecimal currentLoan) {
        this.currentLoan = currentLoan;
    }

    public String getEndMoneyType() {
        return endMoneyType;
    }

    public void setEndMoneyType(String endMoneyType) {
        this.endMoneyType = endMoneyType == null ? null : endMoneyType.trim();
    }

    public BigDecimal getEndMoney() {
        return endMoney;
    }

    public void setEndMoney(BigDecimal endMoney) {
        this.endMoney = endMoney;
    }

    public Integer getFinanceId() {
        return financeId;
    }

    public void setFinanceId(Integer financeId) {
        this.financeId = financeId;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
}